package cn.edu.neu.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.neu.mapper.ShowMovieMapper;
import cn.edu.neu.model.ShowMovie;

@Service
@Transactional
public class ShowMovieServiceImpl implements ShowMovieService {
	@Resource
	private ShowMovieMapper mapper;

	@Override
	public List<ShowMovie> findShowMovieByCinemaId(String cinemaId) {
		List<ShowMovie> moives = mapper.findShowMovieByCinemaId(cinemaId);
		return moives;
	}

	@Override
	public void add(String movieId, String cinemaId) {
		// TODO Auto-generated method stub
		mapper.add(movieId, cinemaId);
	}

	@Override
	public void del(String movieId, String cinemaId) {
		// TODO Auto-generated method stub
		mapper.del(movieId, cinemaId);
	}

}
